﻿using System.Security.Policy;
using System.Web.Mvc;

namespace freshflowersHTK.Helpers
{
    public class FreshFlowerHelper: Controller
    {
        public ActionResult RedirectToLocal(string returnUrl)
        {
            if (Url.IsLocalUrl(returnUrl))
            {
                return Redirect(returnUrl);
            }
            else
            {
                return RedirectToAction("Index", "Home");
            }
        }
    }
}